package com.resurvolution.kingcloudmusicspringboot.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("playlist")
@AllArgsConstructor
@NoArgsConstructor
public class PlayListEntity {
    @TableId(type = IdType.AUTO, value = "playlist_id")
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    @TableField("song_id")
    private Integer songId;
    @TableField("created_at")
    private LocalDateTime createdAt;
}
